import { IsNotEmpty, MinLength } from 'class-validator';
export class CreateUserDto {
  @IsNotEmpty({ message: '昵称不能为空' })
  userName: string;

  @IsNotEmpty({ message: '密码不能为空' })
  @MinLength(6, { message: '密码长度不能小于6位' })
  password: string;

  @IsNotEmpty({ message: '工号不能为空' })
  userId: string;
}
